import { lazy } from "react";


//路由
const router=[
    {
        path:'/',
        to:'/login'
    },
    {
        path:'/home',
        element:lazy(()=>import('../page/Home')),
        // children
    },
    {
        path:'/login',
        element:lazy(()=>import('../page/Login'))
    },
    {
        path:'/wook',
        element:lazy(()=>import('../page/wook/Wook'))
    },
    {
        path:'/afgl',
        element:lazy(()=>import('../page/afgl/index'))
    },
    {
        path:'/sbyw',
        element:lazy(()=>import('../page/sbyw/index'))
    },
    {
        path:'*',
        element:lazy(()=>import('../page/Error'))
    }
]

export default router